package hacky.filebased.agent;

import java.io.File;

import org.junit.Test;

public class FileUtilitiesTest {
    private static final String TEMP_DIR_NAME = "TEMP_DIR";

    private void createFileNamed(String name) throws Exception {
        FileUtilities.writeClassFile(new File("."), name, new byte[] {});
    }

    private void tempDirExistsAndIsDirectory() {
        File file = new File(TEMP_DIR_NAME);
        assertTrue(file.exists());
    }

    @Test
    public void tempDirectoryExistsAsFileIsRemovedAndRecreatedAsDirectory()
            throws Exception {
        createFileNamed(TEMP_DIR_NAME);
        FileUtilities.createTemporaryDirectory(TEMP_DIR_NAME);

    }

    @Test
    public void tempDirectoryExistsAsDirectoryThatIsEmptyAndIsRecreatedAsEmptyDirectory()
            throws Exception {
    }

    @Test
    public void tempDirectoryExistsAsDirectoryWithFilesAndIsRecreatedAsEmptyDirectory()
            throws Exception {
    }
}
